import time

f = open(r"C:\Users\Administrator\Desktop\cicdTest.txt", "a")
i = 0
while i <= 10:
    sys_time = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) + "\n"
    print(sys_time)
    f.write(sys_time)
    time.sleep(1)
    i += 1
# f.close()
